package Client;

import java.io.*;
import java.net.*;
import java.util.*;

import javax.swing.JTextField;

public class Emission implements Runnable {
	
	private PrintWriter out;
	private String message = null;
	//private Scanner sc = null;
	private JTextField jSend;
	
	
	public Emission(PrintWriter out, JTextField envoi) {
		jSend = envoi;
		this.out = out;
	}
	
	public void run() {
		//sc = new Scanner(System.in);
		
		while(true){
			//System.out.println("Votre message :");
			//message = sc.nextLine();
			message = "Votre message :";
			message += jSend.getText();
			out.println(message);
			out.flush();
		}
	}
}// fin de la classe
